From: Miles Bader Date: Sat, 9 Sep 2017 14:28:08 +0000 (+0900) Subject: ; Add a comment for make-text-button in rcirc-markup-urls X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~19^2~6761 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=e91da7f8f2523057fa93ea4aace36863315abb5b;p=emacs.git ; Add a comment for make-text-button in rcirc-markup-urls --- diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index 60af1973ccb..6377f791f45 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el @@ -2499,6 +2499,9 @@ If ARG is given, opens the URL in a new browser window." (end (match-end 0)) (url (match-string-no-properties 0)) (link-text (buffer-substring-no-properties start end))) + ;; Add a button for the URL. Note that we use `make-text-button', + ;; rather than `make-button', as text-buttons are much faster in + ;; large buffers. (make-text-button start end 'face 'rcirc-url 'follow-link t